<template>
  <div class="layout-page">
    <router-view></router-view>
    <div>
      <van-tabbar v-model="active" route>
        <!-- 导航栏必带属性 replace：不记录历史记录 -->
        <van-tabbar-item icon="notes-o" to="/article" replace>
          面经
        </van-tabbar-item>
        <van-tabbar-item icon="star-o" to="/collect" replace>
          <router-link to="">收藏</router-link>
        </van-tabbar-item>
        <van-tabbar-item icon="like-o" to="/like" replace>
          喜欢
        </van-tabbar-item>
        <van-tabbar-item icon="user-o" to="/user" replace>
          我的
        </van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>

<script>
export default {
  name: 'LayoutPage',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped>

</style>
